perm filename A114.TEX[106,RWF] blob
sn#827105 filedate 1986-10-23 generic text, type C, neo UTF8
COMMENT ⊗ VALID 00002 PAGES
C REC PAGE DESCRIPTION
C00001 00001
C00002 00002 \magnification\magstephalf
C00004 ENDMK
C⊗;
\magnification\magstephalf
\input macro.tex
\def\today{\ifcase\month\or
January\or February\or March\or April\or May\or June\or
July\or August\or September\or October\or November\or December\fi
\space\number\day, \number\year}
\baselineskip 14pt
\rm
\font\rmn=cmr9
\line{\sevenrm a114.tex[106,phy] \today\hfill}
\bigskip
\line{\bf CS 106H\hfill Assignment}
\line{\bf Autumn 1986\hfill}
\bigskip
\disleft 25pt:{\bf (1)}:
{\bf (Variables, assignment, input) Due October 27.}
\disleft 25pt::
Use the formula
$$\ln(x)\approx x-{x↑2\over 2}+{x↑3\over 3}-{x↑4\over 4}+\cdots -{x↑{10}\over 10}$$
to estimate $\ln(y)$, taking $y$ from an input file. Try $y=1.2$.
\bigskip
\disleft 25pt:{\bf (2)}:
{\bf (Representation) Due October 29.}
\disleft 25pt::
If $a$ and $b$ are integers, and $c$ is a positive integer,
$(a+b\sqrt{2}\,)↑c$ can be simplified to $d+e\sqrt{2}$, where $d$ and~$e$
are integers. Write a program to read $a$, $b$, $c$ and print $d$,~$e$.
Try it on $(-1+\sqrt{2}\,)↑{10}$.
\bigskip
\line{\copyright 1986 Robert W. Floyd;
First draft (not published) October 23, 1986\hfil}
%revised: Date; subsequently revised.\hfill}
\bye